import Vue from 'vue'
import VueRouter from 'vue-router'
import Contact from '../views/tabbar/contact.vue'
import Search from '../views/tabbar/search.vue'
import AddGoods from '../views/tabbar/addgoods.vue'
import Home from '../views/tabbar/home.vue'
import Member from '../views/tabbar/member.vue'
import Goodslist from '../views/tabbar/Goods/Goodslist.vue'
import Goodsdetail from '../views/tabbar/Goods/Goodsdetail.vue'
import Goodsdesc from '../views/tabbar/Goods/Goodsdesc.vue'
import Goodscomments from '../views/tabbar/Goods/Goodscomments.vue'
import Shopcar from '../views/tabbar/Goods/shopcar.vue'
import Photo from '../views/Photo/photo_list.vue'
import PhotoInfo from '../views/Photo/Photo_info.vue'
import NewsList from '../views/tabbar/news/list.vue'
import NewsDetail from '../views/tabbar/news/newsdetail.vue'

Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: '/newslist',
    component: NewsList
  },
  {
    path: '/newsdetail/:id',
    component: NewsDetail
  },
  {
    path: '/member',
    component: Member
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/contact',
    component: Contact
  },
  {
    path: '/search',
    component: Search
  },
  {
    path: '/addgoods',
    component: AddGoods
  },
  {
    path: '/goods/list',
    component: Goodslist
  },
  {
    path: '/goods/detail/:id',
    component: Goodsdetail
  },
  {
    path: '/goodsdesc/:id',
    component: Goodsdesc
  },
  {
    path: '/goodscomments/:id',
    component: Goodscomments
  },
  {
    path: '/shopcar',
    component: Shopcar
  },
  {
    path: '/photo/list',
    component: Photo
  },
  {
    path: '/photo/info/:id',
    component: PhotoInfo
  }
]
const router = new VueRouter({
  routes
})

export default router
